import currentScript from './current-script';
import defaultElement from './default-element';
import renderDefaultReactComponent from './render-react-component';
import renderDefaultVueComponent from './render-vue-component';
const props = JSON.parse(currentScript.dataset.props || '{}') || {};

const component = (async () => (await renderDefaultReactComponent(props, defaultElement)) || (await renderDefaultVueComponent(props, defaultElement)))();

export default component;